const api = require('../../api/api')
const util = require('../../utils/js/util')
const app = getApp()
Page({
  data: {
    safeBottom: util.getSafeToBottom(),
    plans: [],
  },
  async selectPlan(e) {
    const res = await api.addOrder_check({
      orderJson: JSON.stringify(e.currentTarget.dataset.item)
    })
    wx.navigateTo({ url: "../patientSelect/index?id=" + res.id })
  },
  async onLoad(options) {
    const res = await api.analysis({ check_ids: JSON.parse(options.selects) })
    this.setData({ plans: res })
  },

  onReachBottom() {

  },
})
